#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[])
{
    int a = 10;
    void *p = NULL;
    p = &a;
    *(int *)p = 200;
    // printf("*p=%d", *(int *)p);
    printf("*p=%d\n", a);
    char str[100] = "hello ";
    //char *p2 = str;
    p = str;
    strcpy(p, "hello girls"); //p和str都指向同一块内存，但是如果要修改这个字符串的内容，不能直接赋值，只能使用strcpy或strncpy来修改它的值
    printf("str=%s\n", str);
    /* int x = 10;
    int *p = &x;
    printf("p=%d,p+1=%d\n", p, p + 1);
    p = NULL;
    char c = 'h';
    char *q = &c;
    printf("q=%d,q+1=%d", q, q + 1);*/

    return 0;
}
